package com.yungu.swift.base.model.config;

import java.io.Serializable;
import java.util.List;

/**
 * 乘客端配置
 *
 * @author : cuixiuyin
 * @date : 2019/9/11
 */
public class PassengerConfig implements Serializable {


    /**
     * login : {"imageDrag":true}
     * home : {"activeBiz":[{"businessType":4,"tripType":{"carRental":true,"airportTransportation":true},"realTimeBilling":true},{"businessType":2,"tripType":{"carRental":true,"airportTransportation":true},"realTimeBilling":true},{"businessType":1,"tripType":{"carRental":true,"airportTransportation":true},"realTimeBilling":true},{"businessType":3,"tripType":{"carRental":true,"airportTransportation":true},"realTimeBilling":true},{"businessType":5,"tripType":{"carRental":true,"airportTransportation":true},"realTimeBilling":true}],"mapOriginPoint":{"lat":90,"lng":45}}
     * sidebar : {"inviteFriends":true,"myWallet":true}
     * pay : {"channel":[3,2,1],"rechargeChannel":[1,2]}
     */

    private LoginBean login;
    private HomeBean home;
    private SidebarBean sidebar;
    private PayBean pay;
    private CommonBean common;

    public LoginBean getLogin() {
        return login;
    }

    public void setLogin(LoginBean login) {
        this.login = login;
    }

    public HomeBean getHome() {
        return home;
    }

    public void setHome(HomeBean home) {
        this.home = home;
    }

    public SidebarBean getSidebar() {
        return sidebar;
    }

    public void setSidebar(SidebarBean sidebar) {
        this.sidebar = sidebar;
    }

    public PayBean getPay() {
        return pay;
    }

    public void setPay(PayBean pay) {
        this.pay = pay;
    }

    public CommonBean getCommon() {
        return common;
    }

    public void setCommon(CommonBean common) {
        this.common = common;
    }

    public static class LoginBean {
        /**
         * imageDrag : true 图片拖拽
         */

        private boolean imageDrag;

        public boolean getImageDrag() {
            return imageDrag;
        }

        public void setImageDrag(boolean imageDrag) {
            this.imageDrag = imageDrag;
        }
    }

    public static class HomeBean {
        /**
         * activeBiz : [{"businessType":4,"tripType":{"carRental":true,"airportTransportation":true},"realTimeBilling":true},{"businessType":2,"tripType":{"carRental":true,"airportTransportation":true},"realTimeBilling":true},{"businessType":1,"tripType":{"carRental":true,"airportTransportation":true},"realTimeBilling":true},{"businessType":3,"tripType":{"carRental":true,"airportTransportation":true},"realTimeBilling":true},{"businessType":5,"tripType":{"carRental":true,"airportTransportation":true},"realTimeBilling":true}]
         * mapOriginPoint : {"lat":90,"lng":45}
         */

        private MapOriginPointBean mapOriginPoint;
        private List<ActiveBizBean> activeBiz;

        public MapOriginPointBean getMapOriginPoint() {
            return mapOriginPoint;
        }

        public void setMapOriginPoint(MapOriginPointBean mapOriginPoint) {
            this.mapOriginPoint = mapOriginPoint;
        }

        public List<ActiveBizBean> getActiveBiz() {
            return activeBiz;
        }

        public void setActiveBiz(List<ActiveBizBean> activeBiz) {
            this.activeBiz = activeBiz;
        }

        public static class MapOriginPointBean {
            /**
             * lat : 90 地图默认起点纬度
             * lng : 45 地图默认起点经度
             */

            private int lat;
            private int lng;

            public int getLat() {
                return lat;
            }

            public void setLat(int lat) {
                this.lat = lat;
            }

            public int getLng() {
                return lng;
            }

            public void setLng(int lng) {
                this.lng = lng;
            }
        }

        public static class ActiveBizBean {
            /**
             * businessType : 4 开通业务类型
             * tripType : {"carRental":true,"airportTransportation":true} 日租/半日租 接收机
             * realTimeBilling : true 实时计费显示
             */

            private int businessType;
            private TripTypeBean tripType;
            private boolean realTimeBilling;

            public int getBusinessType() {
                return businessType;
            }

            public void setBusinessType(int businessType) {
                this.businessType = businessType;
            }

            public TripTypeBean getTripType() {
                return tripType;
            }

            public void setTripType(TripTypeBean tripType) {
                this.tripType = tripType;
            }

            public boolean getRealTimeBilling() {
                return realTimeBilling;
            }

            public void setRealTimeBilling(boolean realTimeBilling) {
                this.realTimeBilling = realTimeBilling;
            }

            public static class TripTypeBean {
                /**
                 * carRental : true
                 * airportTransportation : true
                 */

                private boolean carRental;
                private boolean airportTransportation;

                public boolean getCarRental() {
                    return carRental;
                }

                public void setCarRental(boolean carRental) {
                    this.carRental = carRental;
                }

                public boolean getAirportTransportation() {
                    return airportTransportation;
                }

                public void setAirportTransportation(boolean airportTransportation) {
                    this.airportTransportation = airportTransportation;
                }
            }
        }
    }

    public static class SidebarBean {
        /**
         * inviteFriends : true 邀请好友
         * myWallet : true 我的钱包
         */

        private boolean inviteFriends;
        private boolean myWallet;

        public boolean getInviteFriends() {
            return inviteFriends;
        }

        public void setInviteFriends(boolean inviteFriends) {
            this.inviteFriends = inviteFriends;
        }

        public boolean getMyWallet() {
            return myWallet;
        }

        public void setMyWallet(boolean myWallet) {
            this.myWallet = myWallet;
        }
    }

    public static class PayBean {
        /**
         * 支付渠道
         */
        private List<Integer> channel;
        /**
         * 充值渠道
         */
        private List<Integer> rechargeChannel;

        public List<Integer> getChannel() {
            return channel;
        }

        public void setChannel(List<Integer> channel) {
            this.channel = channel;
        }

        public List<Integer> getRechargeChannel() {
            return rechargeChannel;
        }

        public void setRechargeChannel(List<Integer> rechargeChannel) {
            this.rechargeChannel = rechargeChannel;
        }
    }

    /**
     * 通用
     */
    public static class CommonBean {
        /**
         * 小程序审核版本
         */
        private Boolean mpAuditModel;
        /**
         * 二人快车产品说明
         */
        private String twoPersonsDescription;

        /**
         * 三人快车产品说明
         */
        private String threePersonsDescription;

        private boolean privacyPolicy;

        public Boolean getMpAuditModel() {
            return mpAuditModel;
        }

        public void setMpAuditModel(Boolean mpAuditModel) {
            this.mpAuditModel = mpAuditModel;
        }

        public String getTwoPersonsDescription() {
            return twoPersonsDescription;
        }

        public void setTwoPersonsDescription(String twoPersonsDescription) {
            this.twoPersonsDescription = twoPersonsDescription;
        }

        public String getThreePersonsDescription() {
            return threePersonsDescription;
        }

        public void setThreePersonsDescription(String threePersonsDescription) {
            this.threePersonsDescription = threePersonsDescription;
        }

        public boolean isPrivacyPolicy() {
            return privacyPolicy;
        }

        public void setPrivacyPolicy(boolean privacyPolicy) {
            this.privacyPolicy = privacyPolicy;
        }
    }
}
